using Microsoft.Xna.Framework;
using Itdavany.Objects;

namespace Itdavany.Objects
{
    public struct Area : IPositionable, IWidthHeight, IArea
    {
        Rectangle rect;

        public int X
        {
            get
            {
                return rect.X;
            }

            set
            {
                rect.X = value;
            }
        }

        public int Y
        {
            get
            {
                return rect.Y;
            }

            set
            {
                rect.Y = value;
            }
        }

        public int Width
        {
            get
            {
                return rect.Width;
            }

            set
            {
                rect.Width = value;
            }
        }

        public int Height
        {
            get
            {
                return rect.Height;
            }

            set
            {
                rect.Height = value;
            }
        }

        public Rectangle AreaRect
        {
            get
            {
                return rect;
            }
            set
            {
                rect = value;
            }
        }
    }
}